\section{my\_\-acceptor Class Reference}
\label{classmy__acceptor}\index{my_acceptor@{my\_\-acceptor}}
Inheritance diagram for my\_\-acceptor::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3cm]{classmy__acceptor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{my\_\-acceptor} (boost::shared\_\-ptr$<$ \bf{handler::multicaster} $>$ multi, boost::shared\_\-ptr$<$ \bf{network::connection\_\-manager} $>$ mgr)\label{classmy__acceptor_34f1a6bf1e189f477e30be65aa05fe7c}

\item 
virtual void \bf{handle\_\-event} (boost::shared\_\-ptr$<$ \bf{network::message} $>$ msg)
\begin{CompactList}\small\item\em handle\_\-event is called from a worker-thread if a message was received. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}




Definition at line 53 of file test.cpp.

\subsection{Member Function Documentation}
\index{my_acceptor@{my\_\-acceptor}!handle_event@{handle\_\-event}}
\index{handle_event@{handle\_\-event}!my_acceptor@{my\_\-acceptor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void my\_\-acceptor::handle\_\-event (boost::shared\_\-ptr$<$ \bf{network::message} $>$ {\em msg})\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classmy__acceptor_44e71e5e241fb6da639b908352b12cac}


handle\_\-event is called from a worker-thread if a message was received. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em n}]is the received message. \end{description}
\end{Desc}


Implements \bf{handler::event\_\-handler} \doxyref{p.}{classhandler_1_1event__handler_7ff75131a32fb17cf4addc4581344bff}.

Definition at line 61 of file test.cpp.

\begin{Code}\begin{verbatim}62         {
63                 switch(msg->type) {
64                 case network::RECEIVE:
65                         cout << "receive" << endl;
66                         break;
67                 case network::CONNECT:
68                 {
69                         cout << "creating receiver..." << endl;
70                         boost::shared_ptr<my_handler> h(my_handler::create(msg->new_sock));
71                         _multi->add_handler(network::RECEIVE, msg->new_sock, h);
72                         _multi->add_handler(network::DELETE, msg->new_sock, h);
73                         _con_mgr->add_recv(msg->new_sock, 
74                                 boost::shared_ptr<network::xml_filetype>(
75                                         new network::xml_filetype()));
76                         break;
77                 }
78                 case network::DELETE:
79                         cout << "delete" << endl;
80                         break;
81                 }
82         }
\end{verbatim}\end{Code}




The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
handler/test/test.cpp\end{CompactItemize}
